﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProyectoBastanteo.Dominio.Representante>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>

            <th>Cliente</th>
            <th>Nombre</th>
            <th>TipoDOC</th>
            <th>NroDNI</th>
            <th>Cargo</th>
            <th>Grupo</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Modificar", "Edit", new { codigo=item.codclie.codclie,nrodoc=item.nudorep}) %> 
                <%: Html.ActionLink("Editar", "Details", new { codigo = item.codclie.codclie, nrodoc = item.nudorep })%> 
                <%: Html.ActionLink("Eliminar", "Delete", new { codigo = item.codclie.codclie, nrodoc = item.nudorep })%>
            </td>

            <td>
                <%: item.codclie.razclie %>
            </td>

            <td>
                <%: item.nombrep %>
            </td>
            <td>
                <%: item.tidorep %>
            </td>
            <td>
                <%: item.nudorep %>
            </td>
            <td>
                <%: item.cargrep %>
            </td>
            <td>
                <%: item.gruprep %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

